package com.easywork.mystery.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.easywork.mystery.es.EsPoetry;
import com.easywork.mystery.repository.EsPoetryRepository;

@Transactional
@Service
public class EsPoetryService {

	@Autowired
	private EsPoetryRepository esPoetryRepository;

	public EsPoetryRepository getEsPoetryRepository() {
		return esPoetryRepository;
	}

	public List<EsPoetry> findByContent(String content) {
		return esPoetryRepository.findByContent(content);
	}

}
